import request from '@/utils/request'

// 查询慰问金申请列表
export function listCondolenceapplication(query) {
  return request({
    url: '/expensereimbursement/condolenceapplication/list',
    method: 'get',
    params: query
  })
}

// 查询慰问金申请详细
export function getCondolenceapplication(condolenceApplicationId) {
  return request({
    url: '/expensereimbursement/condolenceapplication/' + condolenceApplicationId,
    method: 'get'
  })
}

// 新增慰问金申请
export function addCondolenceapplication(data) {
  return request({
    url: '/expensereimbursement/condolenceapplication',
    method: 'post',
    data: data
  })
}

// 修改慰问金申请
export function updateCondolenceapplication(data) {
  return request({
    url: '/expensereimbursement/condolenceapplication',
    method: 'put',
    data: data
  })
}

// 删除慰问金申请
export function delCondolenceapplication(condolenceApplicationId) {
  return request({
    url: '/expensereimbursement/condolenceapplication/' + condolenceApplicationId,
    method: 'delete'
  })
}
